//
//  HNCreditGoldTargetDetailCell.m
//  XDEducation
//
//  Created by 星道 on 17/5/31.
//  Copyright © 2017年 apple. All rights reserved.
//

#import "HNCreditGoldTargetDetailCell.h"

@implementation HNCreditGoldTargetDetailCell
{
    IBOutlet UILabel *_CreatTime;
    IBOutlet UILabel *_Promis;
    IBOutlet UILabel *_Status;
    IBOutlet UILabel *_LongTime;
    IBOutlet UILabel *_E_People;
    IBOutlet UILabel *_S_People;
    IBOutlet UILabel *_ShengSu;
    
}



- (void)setModel:(HNCreditGoldTargetDetailModel *)Model
{
    _Model = Model;
    
    _CreatTime.text = Model.star_time;
    _Promis.text    = Model.promise;
    _Status.text    = [Model.status isEqualToNumber:@4]?@"已完成":@"未完成";
    _LongTime.text  = [Model.status isEqualToNumber:@4]?@"-":[[Model.long_time stringValue] stringByAppendingString:@"天"];
    _E_People.text  = Model.execute_nickname;
    _S_People.text  = Model.supervisor_nickname;
    _ShengSu.text = [Model.AppealNum stringValue]?:@"0";
}


- (void)setBigModel:(HNCreditGoldBigTargetDetailModel *)BigModel
{
    _BigModel = BigModel;
    
    _CreatTime.text = BigModel.create_time;
    _Promis.text = [NSString stringWithFormat:@"%@  %@",BigModel.exchange_name,BigModel.exchange_desc];
    _Status.text = [BigModel.status isEqualToNumber:@4]?@"已完成":@"未完成";
    _LongTime.text  = [BigModel.status isEqualToNumber:@4]?@"-":[@"123" stringByAppendingString:@"天"];
    _E_People.text  = BigModel.exchange_nickname;
    _S_People.text  = BigModel.supervisorName;
    _ShengSu.text = [BigModel.AppealNum stringValue]?:@"0";
}

@end
